package design_pattern.FactoryModel2.Factory;

import design_pattern.FactoryModel2.Product.Product;

/**
 * @Description
 * @Author yangshunjie
 * @Date 2021/9/20
 */
public abstract class Factory {
    abstract Product buildProduct();

    public Product getProduct(){
        //before

        Product product = this.buildProduct();
        product.setCod("1");

        //after
        return product;
    }


}
